﻿using MassTransit;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace Finbook.Entity.Cmds
{
    public class TestPublishedEventAnotherHandler
        : IConsumer<TestPublishedEvent>
    {
        public Task Consume(ConsumeContext<TestPublishedEvent> context)
        {
            System.Console.WriteLine($"//******{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")}:\tAnotherHandler接收到消息：{context.Message.Name}");
            return Task.CompletedTask;
        }
    }
}
